﻿@model MVC0721.Models.GuestResponse

@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>RsvpForm</title>
<link href="~/Content/bootstrap.css" rel="stylesheet"/>

</head>
<body>
    <div class="jumbotron">
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary()
            <p>你的名字your name:@Html.TextBoxFor(x => x.Name, new { @class = "form-control" })</p>
            <p>你的电邮your email:@Html.TextBoxFor(x => x.Email)</p>
            <p>你的电话your phone:@Html.TextBoxFor(x => x.Phone)</p>
            <p>
                Will you attend?
                @Html.DropDownListFor(x => x.WillAttend, new[]
            {
                new SelectListItem(){Text="是的，我计划参加。yes,I'll be there",
                Value=bool.TrueString},
                new SelectListItem(){Text="抱歉，恕我不能莅临。No,I can't come",
                Value=bool.FalseString}
            }, "Choose an option 选择一项")
            </p>
            <input type="submit" value="Submit RSVP 选择一项" />
        }
    </div>
</body>
</html>
